package pe.com.itworth.ttsclient.infrastructure;

import java.util.Collection;

import javax.mail.MessagingException;
import javax.mail.NoSuchProviderException;

import pe.com.itworth.ttsclient.shared.FolderAndMailsDTO;
import pe.com.itworth.ttsclient.shared.FolderInfoDTO;
import pe.com.itworth.ttsclient.shared.MailDTO;

public interface MailManager {

	public Collection<MailDTO> downloadMails(FolderInfoDTO folder)
			throws NoSuchProviderException, MessagingException;

	public Collection<FolderAndMailsDTO> downloadFoldersWithMails() throws NoSuchProviderException,
			MessagingException;

	public Collection<FolderInfoDTO> getFolderNames() throws MessagingException, NoSuchProviderException;

}
